/* 基础样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: #333;
    background: #fafbff;
}

.wrapper {
    max-width: 720px;
    margin: 48px auto;
    padding: 0 20px;
}

.title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
}

.form {
    background: #fff;
    border: 1px solid #eef0ff;
    border-radius: 5px;
    padding: 24px 28px 32px;
    box-shadow: 0 6px 20px rgba(53, 66, 136, 0.06);
}

.form-group {
    margin-bottom: 22px;
}

.form-group > label:not(.radio),
.group-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 5px;
    border: 2px solid #b9bafc; /* 默认淡紫色边框 */
    outline: none;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* 获取焦点边框变红 */
input:focus,
textarea:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12);
}

/* 单选与复选 */
.radio,
.checkbox {
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    gap: 6px;
    font-weight: 500;
}

.form-group.inline {
    margin-top: -4px;
}

/* 标签选项同一行展示 */
.group-label {
    display: inline-block;
    margin: 0 16px 0 0;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}

/* 单选/复选选中颜色 */
input[type="radio"],
input[type="checkbox"] {
    accent-color: #767676;
}

/* 按钮 */
.form-actions {
    margin-top: 10px;
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 10px 28px;
    border-radius: 5px;
    font-size: 14px;
}

.btn-primary {
    background: #4282D5;
    color: #fff;
    box-shadow: 0 6px 16px rgba(61, 109, 255, .3);
}

.btn-primary:hover {
    background: #2f59e6;
}


